import { request } from "@/utils/service"
import { getToken } from "@/utils/cache/cookies"
import axios from "axios"
const baseURL = import.meta.env.VITE_BASE_API
/** 查  */
export function getTyList(params: any) {
  console.log("params", params)
  return request({
    url: "/shouzhi/ty",
    method: "get",
    params
  })
}
/** 查 充值明细 */
export function getItemizedList(params: any) {
  return request({
    url: "/shouzhi/dcchongzhi",
    method: "get",
    params
  })
}

// 导出
export function downLoadTable(data: any) {
  return axios({
    url: `${baseURL}/shouzhi/downOrder`,
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data",
      token: getToken()
    },
    data,
    responseType: "blob"
  })
}
